package njClass.base
{
	public class StringPlus
	{
		/**
		 * 
		 * @param _mail
		 * var str:String="0owen@163.com";
		 * @param mailData
		 * var reg:Array=[new RegExp("[a-zA-Z0-9_]+@163.com")];
		 * @return 是否符合判定式
		 * 
		 */		
		public static function CheckMail(_mail:String,mailData:Array=null):Boolean{
			if(mailData==null){
				mailData=[/[a-zA-Z0-9_]+@163.com/];
			}
			for(var i:* in mailData){
				if(mailData[i] is RegExp){
					if(mailData[i].exec(_mail)==_mail){
						return true;
					}
				}
			}
			return false;
		}
	}
}